<?php
/**
 * 乐刷行业编码类
 * User: 13651
 * Time: 2025/9/18 11:52
 */

namespace App\Services;

use App\Extensions\BaseService;
use App\Repository\LeshuaUionMccRepo;


class LeshuaUionMccService  extends BaseService
{

    /**
     * 更新数据
     * @param array $data
     * @return bool|int
     */
    public function saveDataService(array $data )
    {
        return LeshuaUionMccRepo::getInstance()->saveData($data);
    }

    /**
     * 根據行業分類名稱獲取信息
     * @param string $name
     * @return \Illuminate\Database\Eloquent\Builder[]|\Illuminate\Database\Eloquent\Collection
     */
    public function getByNameService(string $name )
    {
        return LeshuaUionMccRepo::getInstance()->getByNameinfo($name);
    }
}